import layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  }, {
    // 只想让一级路由员工，显示在左侧菜单
    // 只想让二级路由员工详情希纳是在main中的话
    path: '/employee/detail/:id?', // 员工详情
    component: () => import('@/views/employee/detail'),
    hidden: true, // 在左侧菜单不显示
    meta: {
      title: '员工详情'
    }
  }]
}

